package com.fnzn.entranceGuard.feign;

import com.fnzn.entranceGuard.entity.User;
import com.fnzn.entranceGuard.msg.ObjectRestResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author sxf
 * @date 2018/05/24
 */
@Component
public class UserInfoServiceFallbackImpl implements UserInfoService {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public List<User> get(String username) {
        logger.error("调用{}异常:{}", "findUserByUsername", username);
        return null;
    }

    @Override
    public List<User> getByOpenId(String openId) {
        logger.error("调用{}异常:{}", "findUserByOpenId", openId);
        return null;
    }

    @Override
    public List<User> getByQqId(String qqId) {
        logger.error("调用{}异常:{}", "findUserByQqId", qqId);
        return null;
    }

    @Override
    public ObjectRestResponse<User> addUser(User user) {
        logger.error("调用{}异常:{}", "addUer", user);
        return null;
    }

    @Override
    public ObjectRestResponse<User> updateUser(User user) {
        logger.error("调用{}异常:{}", "updateUser", user);
        return null;
    }

}
